/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.isystem.autpart.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author Aquarius
 */
public class idNew {

    public static String id() {
        java.util.Date dt = new java.util.Date();
        Date dt2 = new java.util.Date();

        String ms = dt2.getTime() + "";
        ms = ms.substring(7, 13);
        //SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss:SSSSSS");
        SimpleDateFormat sdf2 = new SimpleDateFormat("yyyyMMddHHmmss");
        //System.out.println("==>"+sdf.format(dt));
        String id = sdf2.format(dt) + ms;
        return id;

    }
}
